< Prev(J) / Next(K) > / View :

Filename: /text/shared/02/01170203.xhp

(section: daten) (bookmark: bm_id3150040)
forms; data
data; forms and subforms
forms; subforms
subforms; description

フォーム; データ
データ; フォームとサブフォーム
フォーム; サブフォーム
サブフォーム; 説明

Data
データ(hd_id3150040.1)

The Data tab page defines the form properties that refer to the database that is linked to the form.
データ タブでは、フォームの関連データベースを参照するフォーム属性を指定します。(par_id3147242.2)

(/section: daten)

Defines the data source on which the form is based, or specifies whether the data can be edited by the user. Apart from the sort and filter functions, you will also find all the necessary properties to create a subform.
フォームの基になるデータソースを指定できるほか、ユーザーによるデータの編集を許容するかどうかを設定可能です。並べ替え機能とフィルタ機能に加えて、サブフォームを作成するために必要なすべての属性が提示されます。(par_id3149398.107)

(variable: wie)To access this command...(variable: wie)この機能の見つけ方

(embed text/shared/00/00040501.xhp#formulareigenschaftendaten : linkinfo)

Open context menu of a selected form element - choose Form - Data tab
選択したフォーム要素のコンテキストメニュー フォーム...データ タブ(par_id3145786.100)

Open Form Controls toolbar or Form Design toolbar, click Form icon - Data tab
フォームコントロール ツールバーまたはフォームデザイン ツールバーを開き、フォーム アイコン → データ タブをクリックします。(par_id3158156.101)

(/embed text/shared/00/00040501.xhp#formulareigenschaftendaten)


(section: Section1) (bookmark: bm_id3153146)

Data source
データソース(hd_id3154810.5)

Defines the data source to which the form should refer. If you click the ... button, you call the Open dialog, where you can choose a data source.
フォームで参照するデータソースを指定します。... ボタンをクリックすると、データソースを選択できる 開く ダイアログが開きます。(par_id3152349.16)

(/section: Section1) (section: Section2) (bookmark: bm_id3150275)

Content
コンテンツ(hd_id3146948.6)

Determines the content to be used for the form. The content can be an existing table or a query (previously created in the database), or it can be defined by an SQL-statement. Before you enter a content you have to define the exact type in Content type.
フォームで使用する内容を指定します。内容は、既存のテーブルまたはクエリー (以前にデータベース内で作成したもの) を指定できるほか、SQL ステートメントで定義することもできます内容を入力する前に、内容の種類 で種類を指定する必要があります。(par_id3155922.17)

If you have selected either "Table" or "Query" in Content type, the box lists all the tables and queries set up in the selected database.
内容の種類 で「テーブル」または「クエリー」のいずれかを選択すると、このボックスには、選択したデータベース内で設定されているすべてのテーブルとクエリーの全リストが表示されます。(par_id3149657.27)

(/section: Section2) (section: Section3) (bookmark: bm_id3153381)

Content type
データソースの種類(hd_id3148755.7)

Defines whether the data source is to be an existing database table or query, or if the form is to be generated based on an SQL statement.
データソースとして既存のデータベーステーブルかクエリーを使用するか、あるいは SQL ステートメントに基づいてフォームを作成するかを選択します。(par_id3150541.19)

If you choose "Table" or "Query", the form will refer to the table or query that you specify under Content. If you want to create a new query or a subform, then you have to choose the "SQL" option. You can then enter the statement for the SQL query or the subform directly in the List content box on the Control properties Data tab page.
「テーブル」あるいは「クエリー」を選択すると、フォームは、内容 で指定するテーブルまたはクエリーを参照します。新しいクエリーまたはサブフォームを作成する場合は、「SQL」オプションを選択する必要があります。SQL クエリーの文またはサブフォームは、コントロール属性のデータタブページの リストの内容 ボックスに直接入力できます。(par_id3153192.29)

(/section: Section3) (section: Section4) (bookmark: bm_id3144433)

Analyze SQL command
SQLコマンドの解析(hd_id3158409.105)

Specifies whether the SQL statement is to be analyzed by Office. If set to Yes, you can click the ... button next to the Content list box. This will open a window where you can graphically create a database query. When you close that window, the SQL statement for the created query will be inserted in the Content list box.
Office で SQL ステートメントを分析するかどうかを指定します。 「はい」に設定した場合、「内容」 リストボックスの隣の 「...」 ボタンをクリックできるようになります。 このボタンをクリックすると、データベースクエリーを図式で作成できるウィンドウが開きます。 ウィンドウを閉じると、作成したクエリーの SQL ステートメントが 「内容」 リストボックスに挿入されます。(par_id3145171.106)

(/section: Section4) (section: Section5)

Filter
フィルタ(hd_id3154684.81)

Enter the required conditions for filtering the data in the form. The filter specifications follow SQL rules without using the WHERE clause. For example, if you want to display all records with the "Mike" forename, type into the data field: Forename = 'Mike'. You can also combine conditions: Forename = 'Mike' OR Forename = 'Peter'. All records matching either of these two conditions will be displayed.
フォーム内のデータをフィルタするために必要な条件を入力します。フィルタの指定方法は、WHERE 句を除いた SQL 規則に従います。 たとえば、「Mike」という名前を含むレコードをすべて表示する場合は、データフィールドに Forename = 'Mike' という条件を入力します。また、Forename = 'Mike' OR Forename = 'Peter' のように条件を組み合わせることもできます。この 2 つの条件のいずれかに一致するレコードがすべて表示されます。(par_id3150449.82)

The filter function is available in user mode through the AutoFilter and Default Filter icons on the Form Navigation Bar.
フィルタ機能は、ユーザーモードで フォームナビゲーション バーオートフィルタ アイコンと デフォルトフィルタ アイコンから使用できます。(par_id3156212.83)

(/section: Section5) (section: Section6) (bookmark: bm_id3151353)

Sort
並べ替え(hd_id3156005.84)

Specifies the conditions to sort the data in the form. The specification of the sorting conditions follows SQL rules without the use of the ORDER BY clause. For example, if you want all records of a database to be sorted in one field in an ascending order and in another field in a descending order, enter Forename ASC, Name DESC (presuming Forename and Name are the names of the data fields).
フォーム内でデータをソートする条件を指定します。ソート条件の指定方法は、ORDER BY 句を除いた SQL 規則に従います。 たとえば、あるフィールドを昇順、別のフィールドを降順にして、データベース内の全レコードをソートする場合は、「Forename ASC, Name DESC」(Forename と Name は、それぞれデータフィールドの名前です) と入力します。(par_id3163712.85)

The appropriate icons on the Form Navigation Bar can be used in User mode to sort: Sort Ascending, Sort Descending, Sort.
ユーザーモードでは、フォームナビゲーション バーの該当するアイコン、昇順のソート降順のソートソート を使ってソートを行うことができます。(par_id3156444.86)

(/section: Section6) (section: Section7) (bookmark: bm_id3154129)

Add data only
データだけを追加(hd_id3148616.8)

Determines if the form only allows the addition of new data (Yes) or if it allows other properties as well (No).
ここで、フォームが新しいデータの追加だけを許可するか(はい)、あるいはこの属性に限定しないのか(いいえ)を指定します。(par_id3153139.20)

Note Icon 注マーク If Add data only is set to "Yes", changing or deleting data is not possible.
データのみ追加 を「はい」に設定した場合、データの変更または削除が不可能になります。(par_id3148575.21)

(/section: Section7) (section: Section8) (bookmark: bm_id3155418)

Navigation bar
ナビゲーションバー(hd_id3148455.9)

Specifies whether the navigation functions in the lower form bar can be used.
下段に表示されるフォームバーのナビゲーション機能の使用を許可するかどうかを指定します。(par_id3157976.22)

The "Parent Form" option is used for subforms. If you choose this option for a subform, you can navigate using the records of the main form if the cursor is placed in the subform. A subform is linked to the parent form by a 1:1 relationship, so navigation is always performed in the parent form.
「親フォーム」オプションはサブフォームに使用します。 このオプションをサブフォームで選択した場合、カーソルがサブフォーム内にあるときにはメインフォームのレコードを使ってナビゲートできます。 サブフォームは 1 対 1 の関係で親フォームにリンクされているので、ナビゲーションは常に親フォームで行われます。(par_id3149485.79)

(/section: Section8) (section: Section9) (bookmark: bm_id3151282)

Cycle
サイクル(hd_id3151051.10)

Determines how the navigation should be done using the tab key. Using the tab key, you can move forward in the form. If you simultaneously press the Shift key, the navigation will follow the opposite direction. If you reach the last (or the first) field and press the tab key again, it can have various effects. Define the key control with the following options:
Tab キーを使ったナビゲーションの方法を指定します。 Tab キーを押すと、フォーム内で次の項目に移動できます。Shift キーを押しながら Tab キーを押すと、反対方向にナビゲーションします。最後 (または最初) のフィールドで Tab キーを押した場合の動作はさまざまです。次のオプションでキーの動作を制御します。(par_id3154944.23)

Option
オプション(par_id3166413.87)

Meaning
意味(par_id3150424.88)

Default
標準(par_id3150417.89)

This setting automatically defines a cycle which follows an existing database link: If the form contains a database link, the Tab key will, by default, initiate a change to the next or previous record on exit from the last field (see All Records). If there is no database link the next/previous form is shown (see Current Page).
このように設定すると、既存のデータベースリンクにアクセスするサイクルが自動的に定義されます。フォーム内にデータベースリンクが存在する場合、タブキーで最後のフィールドを終了すると、次あるいは前のレコードに移動します (「すべてのレコード」参照)。データベースリンクがない場合、次あるいは前のフォームに移動します(現在のページ参照)。(par_id3157847.90)

All records
すべてのレコード(par_id3153418.91)

This option applies to database forms only and is used to navigate through all records. If you use the Tab key to exit from the last field of a form, the current record is changed.
このオプションはデータベースフォームのみに適用されます。すべてのレコードをナビゲートする場合に、このオプションを使用します。フォームの最後のフィールドで Tab キーを使って移動すると、現在のレコードが変更されます。(par_id3152972.92)

Active record
現在のレコード(par_id3151020.93)

This option applies to database forms only, and is used to navigate within the current record. If you use the Tab key to exit from the last field of a form, the current record is changed.
このオプションはデータベースフォームのみに適用されます。現在のレコード内をナビゲートする場合に、このオプションを使用します。フォームの最後のフィールドで Tab キーを使って移動すると、現在のレコードが変更されます。(par_id3145301.94)

Current page
現在のページ(par_id3146913.95)

On exit from the last field of a form, the cursor skips to the first field in the next form. This is standard for HTML forms; therefore, this option is especially relevant for HTML forms.
フォームの最後のフィールドからTab キーを使って移動すると、カーソルが次のフォームの最初のフィールドに移動します。これは、HTML フォームの標準動作です。したがって、このオプションは特に、HTML フォームでの使用が想定されています。(par_id3150330.96)


(/section: Section9) (section: Section10) (bookmark: bm_id3155445)

Allow additions
データの追加(hd_id3155064.11)

Determines if data can be added.
データを追加できるかどうかを指定します。(par_id3154360.24)

(/section: Section10) (section: Section11) (bookmark: bm_id3083286)

Allow modifications
データの変更(hd_id3156054.12)

Determines if the data can be modified.
データを変更できるかどうかを指定します。(par_id3156377.25)

(/section: Section11) (section: Section12) (bookmark: bm_id3153924)

Allow deletions
データの削除(hd_id3149019.13)

Determines if the data can be deleted.
データを削除できるかどうかを指定します。(par_id3148995.26)

(/section: Section12) (section: Section13) (bookmark: bm_id3147097)

Link master fields
リンク元(hd_id3153714.3)

If you create a subform, enter the data field of the parent form responsible for the synchronization between parent and subform. To enter multiple values, press Shift + Enter after each input line.
サブフォームを作成する場合は、親フォームとサブフォーム間の同期処理を行う親フォームのデータフィールドを入力します。複数の値を入力するときは、各入力行のあとに (Shift) + (Enter) キーを押します。(par_id3147339.14)

The subform is based on an SQL query; more specifically, on a Parameter Query. If a field name is entered in the Link master fields box, the data contained in that field in the main form is read to a variable that you must enter in Link slave fields. In an appropriate SQL statement, this variable is compared to the table data that the subform refers to. Alternatively, you can enter the column name in the Link master fields box.
サブフォームは SQL クエリー、正確に言えばパラメータクエリーに基づいています。リンク元 ボックスにフィールド名を入力した場合、メインフォームのそのフィールドのデータが読み取られ、リンク先 に入力する必要のある変数に変換されます。適切な SQL 文で、この変数と、サブフォームの参照先であるテーブルデータとの比較が行われます。または、リンク元 ボックスに列名を入力することもできます。(par_id3149568.71)

Consider the following example:
その際、以下の例を参考にしてください。(par_id3156089.72)

The database table on which the form is based is, for example, a customer database ("Customer"), where every customer has been given a unique number in a data field named "Cust_ID". A customer's orders are maintained in another database table. You now want to see each customer's orders after entering them into the form. In order to do this you should create a subform. Under Link master fields enter the data field from the customer database which clearly identifies the customer, that is, Cust_ID. Under Link slave fields enter the name of a variable which is to accept the data of the field Cust_ID, for example, x.
フォームがベースとするデータベーステーブルが、たとえば、各顧客を一意的な番号で表示した、すなわちデータフィールド「顧客_ID」を有する顧客データベース(「顧客」)であるとします。1人の顧客の注文は、他のデータベーステーブルで管理しています。このフォームに入力する各顧客に関して、その注文も表示するには、サブフォームを作成し、リンク元 に、顧客を一意的に識別できる顧客データベースのデータフィールド、すなわち「顧客ID」を入力します(カギかっこは入力しません)。リンク先 に、顧客ID フィールドのデータを取り込む変数の名前、たとえば、「x」を入力します。(par_id3151017.30)

The subform should show the appropriate data from the orders table ("Orders") for each customer ID (Customer_ID -> x). This is only possible if each order is uniquely assigned to one customer in the orders table. Alternatively, you can use another field called Customer_ID; however, to make sure that this field is not confused with the same field from the main form, the field is called Customer_Number.
サブフォームには、各顧客 ID(Customer_ID -> x) に該当する適切なデータが注文テーブル ("Orders") から表示されるはずです。この動作が可能なのは、注文テーブル内で各注文が単一の顧客に一意に割り当てられている場合に限られます。また、別のフィールド Customer_ID を使用することもできます。ただし、このフィールドとメインフォームの同じフィールドを混同しないように、このフィールドには Customer_Number という名前が付けられています。(par_id3151248.73)

Now compare the Customer_Number in the "Orders" table with the Customer_ID from the "Customers" table, which can be done, for example, using the x variable with the following SQL statement:
例えば、次の SQL ステートメントで x 変数を使用して、「Orders」テーブルの Customer_Number を「Customers」テーブルの Customer_ID と比較できます。(par_id3153537.74)

SELECT * FROM Orders WHERE Customer_Number =: x (if you want the subform to show all data from the orders table)
SELECT * FROM Orders WHERE Cust_No =:x (サブフォームに Orders テーブルのすべてのデータを表示させる場合)(par_id3155335.75)

or:
あるいは、(par_id3163727.76)

SELECT Item FROM Orders WHERE Customer_Number =: x (if you want the subform from the orders table to show only the data contained in the "Item" field)
SELECT Item FROM Orders WHERE Cust_ID =:x (テーブル Orders のサブフォームにフィールド Item のデータだけを表示する場合)(par_id3153921.77)

The SQL statement can either be entered in the Data source field, or you can create an appropriate parameter query, which can be used to create the subform.
SQLステートメントは、データソース で入力するか、あるいはサブフォームを作成するパラメータクエリーを作成します。(par_id3148488.78)

(/section: Section13) (section: Section14) (bookmark: bm_id3145789)

Link slave fields
リンク先(hd_id3150648.4)

If you create a subform, enter the variable where possible values from the parent form field can be stored. If a subform is based on a query, enter the variable that you defined in the query. If you create a form using an SQL statement entered in the Data source field, enter the variable you used in the statement. You can choose any variable name. If you want to enter multiple values, press Shift + Enter.
サブフォームを作成する場合、親フォームフィールドの値を格納できる変数を入力します。 サブフォームに基づくクエリーの場合には、クエリーで定義した変数を入力します。データソースフィールドに入力した SQL ステートメントを使用してフォームを作成する場合には、ステートメント内で使用した変数を入力します。任意の変数名を選択できます。複数の値を入力する場合は、(Shift) + (Enter) キーを押します。(par_id3149923.15)

If, for example, you specified the Customer_ID database field as a parent field under Link master fields, then you can define under Link slave fields the name of the variable in which the values of the Customer_ID database field are to be stored. If you now specify an SQL statement in the Data source box using this variable, the relevant values are displayed in the subform.
リンク元 で、上位フィールドとして、たとえば、データベースフィールド「顧客 ID」を入力した場合、リンク先 で、データベースフィールド「顧客 ID」の値を読み出す変数名を指定します。この変数を使って、データソース ボックスに SQLステートメントを入力する場合、当該値がサブフォームに表示されます。(par_id3155114.31)

(/section: Section14)

What is a subform?
サブフォームとは何か。(hd_id3152778.32)

Forms are created based on a database table or database query. They display the data in a visually pleasant fashion and can be used to enter data or edit data.
フォームは、データベーステーブルあるいはデータベースクエリーを基に作成されます。データを表示できるようにすれば、新しいデータを入力したり、フォームを基にしたデータベーステーブルあるいはデータベースクエリーに保存されている既存のデータを変更するのに役立ちます。(par_id3155579.33)

(variable: wozu)If you require a form that can refer to the data in a table or query and can additionally display data from another table, you should create a subform. For example, this subform can be a text box that displays the data of another database table.
(variable: wozu)テーブルかクエリー内のデータを参照し、さらに別のテーブルのデータを表示するフォームが必要な場合は、サブフォームを作成すべきです。 たとえば、別のデータベーステーブルのデータを表示するテキストボックスとしてこのサブフォームを使用できます。(par_id3147094.34)

A subform is an additional component of the main form. The main form can be called the "parent form" or "master". Subforms are needed as soon as you want to access more than one table from a form. Each additional table requires its own subform.
サブフォームは、メインフォームの「追加コンポーネント」に他なりません。このメインフォームを、「上位フォーム」または「マスター」と呼んでいます。1 つのフォームで 2 つ以上のテーブルにアクセスする場合に、サブフォームが必要になります。その他の各テーブルにも、それぞれ 1 つのサブフォームが必要です。(par_id3157972.35)

After creating a form, it can be changed into a subform. To do this, enter Design Mode, and open the Form Navigator. In the Form Navigator, drag a form (that will become a subform) onto any other form (that will become a master).
フォームの作成後に、フォームをサブフォームに変更できます。変更するには、デザインモードに入り、「フォームナビゲータ」を開きます。「フォームナビゲータ」で、(サブフォームに変更する) フォームを (マスターフォームにする) 別のフォーム上にドラッグします。(par_id4807275.)

The user of your document will not see that a form has subforms. The user only sees a document in which data is entered or where existing data is displayed.
ドキュメントのユーザーからは、フォームにサブフォームがあることはわかりません。ユーザーからは、データが入力されているドキュメント、または既存のデータが表示されているドキュメントのみ見えます。(par_id3158444.36)

Specify the Link master field from the data fields in the master form. In the subform, the Link slave field can be set as a field which will be matched to the contents of the Link master field.
マスターフォーム内のデータフィールドのリンク元を指定します。サブフォームでは、リンク元の内容に対応するフィールドとして、リンク先を設定できます。(par_idN10C2A.)

When the user navigates through the data, the form always displays the current data record. If there are subforms defined, the contents of the subforms will be displayed after a short delay of approximate 200 ms. This delay enables you to quickly browse through the data records of the master form. If you navigate to the next master data record within the delay limit, the subform data need not be retrieved and displayed.
ユーザーがデータをナビゲートするとき、フォームには常に現在のデータレコードが表示されます。サブフォームが定義されている場合、サブフォームの内容は約 200 ミリ秒の短い遅延をおいて表示されます。このような遅延により、マスターフォームのデータレコードを素早く参照することができます。遅延の制限内に次のマスターデータレコードにナビゲートすれば、サブフォームのデータを取得、表示する必要がなくなります。(par_idN10C2D.)


< Prev / Next >